<!DOCTYPE html>
<html lang="en">
<head>
{{template "header" .}}
</head>
<body>
{{template "navbar" .}}
<link rel="stylesheet" href="/editor.md/css/editormd.css"/>
<form id="test-editor">
    <textarea style="display:none;">{{ .Content | SafeHTML }}</textarea>
</form>
<script src="/js/zepto.min.js"></script>
<script>
    var jQuery = Zepto;
</script>
<script src="/js/jquery.min.js"></script>
<script src="/editor.md/lib/marked.min.js"></script>
<script src="/editor.md/lib/prettify.min.js"></script>
<script src="/editor.md/lib/raphael.min.js"></script>
<script src="/editor.md/lib/underscore.min.js"></script>
<script src="/editor.md/lib/sequence-diagram.min.js"></script>
<script src="/editor.md/lib/flowchart.min.js"></script>
<script src="/editor.md/lib/jquery.flowchart.min.js"></script>
<script src="/editor.md/editormd.js"></script>
<script type="text/javascript">
    $(function () {
        var editor = editormd.markdownToHTML("test-editor", {
            htmlDecode      : "style,script,iframe",  // you can filter tags decode
            emoji           : true,
            taskList        : true,
            tocm            : true,
            tocContainer    : "",
            tocDropdown     : false,
            tex             : true,  // 默认不解析
            flowChart       : true,  // 默认不解析
            sequenceDiagram : true,  // 默认不解析
            path            : "/editor.md/lib/",
        });
    });
</script>

</body>
</html>